#include	"STC8G_H_Delay.h"
 
void delay_ms(unsigned int ms)
{
	unsigned int i;
	do{
		i = MAIN_Fosc / 13000;
		while(--i);
	}while(--ms);
}

void delay_us(unsigned int us)
{
	unsigned int i;
	do{
		i = MAIN_Fosc / 13000000;
		while(--i);
	}while(--us);
}